-- Leviathan (c) v.v.balashoff
local Class = require('leviathan/Class')
local Tween = require('libs/tween/tween')

local TweenComponent = Class:derive('TweenComponent')

function TweenComponent:new(duration, subject, target, easing)
    self.id = 'TweenComponent'
    self.typeId = 'Tween'
    self.drawable = false
    self.enabled = true
    self.duration = duration or 1
    self.subject = subject
    self.target = target
    self.easing = easing
    self.tween = Tween.new(self.duration, self.subject, self.target, self.easing)
    self.start = nil
end

return TweenComponent
